{
 "cells": [
  {
   "cell_type": "code",
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2025-09-15T06:53:19.848840Z",
     "start_time": "2025-09-15T06:53:19.846095Z"
    }
   },
   "source": [
    "# def my_func1(b):\n",
    "#     b = 2\n",
    "#     return b\n",
    "# a = 1\n",
    "# a = my_func1(a)\n",
    "# print(a)\n",
    "#\n",
    "# def my_func3(l2):\n",
    "#     l2.append(4)\n",
    "# l1 = [1,2,3]\n",
    "# my_func3(l1)\n",
    "# print(l1)\n",
    "l1 = [1,2,3]\n",
    "l2 = [1,2,3]\n",
    "l3 = l2\n",
    "l1 == l2 == l3\n",
    "\n",
    "def func(d):\n",
    "    d['a'] = 10\n",
    "    d['b'] = 20\n",
    "d = {'a':1,'b':2}\n",
    "func(d)\n",
    "print(d)\n"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'a': 10, 'b': 20}\n"
     ]
    }
   ],
   "execution_count": 9
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
